package cn.iocoder.yudao.module.pplan.controller.admin.recipemeal.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.pplan.controller.admin.recipemealingre.vo.RecipeMealIngreRespVO;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 生产计划-餐谱菜品数据管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class RecipeMealRespVO {

    @Schema(description = "唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "19492")
    @ExcelProperty("唯一标识符")
    private Long id;

    @Schema(description = "菜品编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("菜品编号")
    private String mealCode;

    @Schema(description = "菜品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("菜品名称")
    private String mealName;

    @Schema(description = "所属航空公司", requiredMode = Schema.RequiredMode.REQUIRED, example = "23377")
    @ExcelProperty(value = "所属航空公司", converter = DictConvert.class)
    @DictFormat("pplan_airline_id") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Long airlineId;

    @Schema(description = "菜品类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "菜品类型", converter = DictConvert.class)
    @DictFormat("pplan_meal_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String mealType;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否启用", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean isActive;

    @Schema(description = "特别说明")
    @ExcelProperty("特别说明")
    private String remarks;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "配料信息")
    private List<RecipeMealIngreRespVO> mealIngreRespVOS;
}